package com.arvato.minipro.bean.bean_vo.mall;

import java.util.Date;

import com.arvato.common.util.DateFormatUtil;
/**
 * @author: smallking
 * 
 * @Descibe: 数据库表commodity_cut对应的java实体
 * 
 * @Date: 2018年7月4日  下午4:16:58
 */
public class CommodityCutVo {
	/**
	 * 主键ID
	 */
    private String commodityCutId;
    /**
     * 商品ID
     */
    private String commodityId;
    /**
     * 商品底价
     */
    private Float floorPrice;
    /**
     * 砍价上限
     */
    private Float upperLimit;
    /**
     * 砍价下限
     */
    private Float lowerLimit;
    /**
     * 可砍次数
     */
    private Integer cutCount;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 截止时间
     */
    private Date endTime;
    /**
     * 状态 1：正常， 0：下架 2：过期
     */
    private Integer status;
    /**
     * 对应的商品实体
     */
    private EcCommodityVo commodityVo;
    
    public String getCommodityCutId() {
        return commodityCutId;
    }

    public void setCommodityCutId(String commodityCutId) {
        this.commodityCutId = commodityCutId == null ? null : commodityCutId.trim();
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId == null ? null : commodityId.trim();
    }

    public Float getFloorPrice() {
        return floorPrice;
    }

    public void setFloorPrice(Float floorPrice) {
        this.floorPrice = floorPrice;
    }

    public Float getUpperLimit() {
		return upperLimit;
	}

	public void setUpperLimit(Float upperLimit) {
		this.upperLimit = upperLimit;
	}

	public Float getLowerLimit() {
		return lowerLimit;
	}

	public void setLowerLimit(Float lowerLimit) {
		this.lowerLimit = lowerLimit;
	}

	public Integer getCutCount() {
		return cutCount;
	}

	public void setCutCount(Integer cutCount) {
		this.cutCount = cutCount;
	}
	

	public String getCreateTime() {
    	return DateFormatUtil.date2Str(createTime);
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getEndTime() {
    	return DateFormatUtil.date2Str(endTime, "yyyy-MM-dd HH:mm:ss");
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

	public EcCommodityVo getCommodityVo() {
		return commodityVo;
	}

	public void setCommodityVo(EcCommodityVo commodityVo) {
		this.commodityVo = commodityVo;
	}
    
}